package icu.qx.qc.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 缺陷对象 qc_drawback
 * 
 * @author ruoyi
 * @date 2024-06-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class QcDrawback extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 缺陷编号 */
    @Excel(name = "缺陷编号")
    private String drawbackCode;

    /** 缺陷名称 */
    @Excel(name = "缺陷名称")
    private String drawbackName;

    /** 缺陷类型编码 */
    @Excel(name = "缺陷类型编码")
    private String drawbackTypeCode;
    private QcDrawbackType qcDrawbackType;

    /** 缺陷类型名称 */
    @Excel(name = "缺陷类型名称")
    private String drawbackTypeName;

    /** 缺陷状态 */
    @Excel(name = "缺陷状态")
    private Integer drawbackStatus;

    /** 缺陷描述 */
    @Excel(name = "缺陷描述")
    private String drawbackDetail;

    /** 缺陷备注 */
    @Excel(name = "缺陷备注")
    private String drawbackDesc;

    /** 创建人 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 修改人 */
    private String updateBy;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 缺陷类型信息 */
    private List<QcDrawbackType> qcDrawbackTypeList;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("drawbackCode", getDrawbackCode())
            .append("drawbackTypeCode", getDrawbackTypeCode())
            .append("drawbackName", getDrawbackName())
            .append("drawbackStatus", getDrawbackStatus())
            .append("drawbackDetail", getDrawbackDetail())
            .append("drawbackDesc", getDrawbackDesc())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("qcDrawbackTypeList", getQcDrawbackTypeList())
            .toString();
    }
}
